package com.ruoyi.system.mapper.survey;

import com.ruoyi.system.domain.survey.SurveyInfo;
import com.ruoyi.system.domain.survey.SurveyOption;
import com.ruoyi.system.domain.survey.SurveyQuestion;
import org.apache.ibatis.annotations.Options;

import java.util.List;

public interface SurveyQuestionMapper {

    public List<SurveyQuestion> selectSurveyQuestionBySurveyId(Long surveyId);

    @Options(keyProperty = "question_id")
    public int insertSurveyQuestion(SurveyQuestion surveyQuestion);

    @Options(keyProperty = "question_id")
    public int updateSurveyQuestion(SurveyQuestion surveyQuestion);

    public int updateSurveyOption(SurveyOption surveyOption);

    public int insertSurveyOption(SurveyOption surveyOption);



}
